#ifndef _DVB_SERVICES_DB_H
#define _DVB_SERVICES_DB_H

typedef enum
{
	DVB_NETNAME_UTF = 1,
	DVB_NETNAME_ORIGIN = 2,
}DVB_NETNAME_FLAG_T;


int DVBServicesDBClear();

int DVBServicesDBClearNetProg();

int DVBServicesDBAddItem(dvb_service_t* handle);

int DVBServicesDBListDelItem(dvb_service_t* handle);

int DVBServicesDBReName(dvb_service_t* handle,char* pSzName,int len);

int DvbServicesDBSetNetName(dvb_service_t* handle,char* pSzName,int len);

int DvbServicesDBSetNetFlag(dvb_service_t* handle, DVB_NETNAME_FLAG_T eType);

int DvbServicesDBGetNetFlag(dvb_service_t* handle, unsigned char* pbNetProg);

int DvbServicesDBGetNetName(dvb_service_t* handle, char* pSzName, int len);

int DvbServicesDBGetLcn(dvb_service_t* handle);

dvb_service_t* DVBServicesDBGetHandleByLcn(unsigned int u32Lcn);

int DVBServicesDBSetLcn(dvb_service_t* handle, unsigned int u32Lcn);

int DVBServicesDBGetType(dvb_service_t* handle, unsigned int* pu32Type);

int DVBServicesDBSetType(dvb_service_t* handle, unsigned int u32Type);

int DVBServicesDBGetAudioIndex(dvb_service_t* handle);

int DVBServicesDBSetAudioIndex(dvb_service_t* handle, unsigned int u32Index);

int DVBServicesDBSetSubLangIndex(dvb_service_t* handle, int index);

int DVBServicesDBGetSubLangIndex(dvb_service_t* handle);

int DVBServicesDBGetLock(dvb_service_t* SerHandle);

int DVBServicesDBSetLock(dvb_service_t* SerHandle,int bLock);

int DVBServicesDBGetUsed(dvb_service_t* SerHandle);

int DVBServicesDBSetUsed(dvb_service_t* SerHandle, int used);

int DVBServicesDBSetVolume(dvb_service_t* SerHandle,int vol);

int DVBServicesDBGetVolume(dvb_service_t* SerHandle);

int DVBServicesDBSetStereoMode(dvb_service_t* SerHandle,int mode);

int DVBServicesDBGetStereoMode(dvb_service_t* SerHandle);

int DvbServicesDBGetName(dvb_service_t* handle, char*provider, char*sname);

int DVBServicesDBSerialize(unsigned char* pu8Data, unsigned int* pu32Len);

int DVBServicesDBDeserialize(unsigned char* pu8Data, unsigned int* pu32Len);

int DVBServicesDBChanged();

int DVBSevicesDBIsServiceExist(dvb_service_t* handle);

#endif //_DVB_SERVICES_DB_H
